﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Library;

namespace Sport_Shop.Winform
{
    public partial class BaoCao : Form
    {
        public BaoCao()
        {
            InitializeComponent();
        }

        List<BizBaoCao> lst = new List<BizBaoCao>();

        private void BaoCao_Load(object sender, EventArgs e)
        {
            BizTime time = new BizTime(dateTimeFrom.Value, dateTimeTo.Value);
            this.BizTimeBindingSource.DataSource = time;

            
            lst = BizBaoCao.GetList(dateTimeFrom.Value, dateTimeTo.Value);
            this.BizBaoCaoBindingSource.DataSource = lst;
            this.reportViewer_BaoCao.RefreshReport();
        }
    }
}
